<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FileSystemclass
 *
 * @author NE
 */
class FileSystem {

	static public function scanFsForInstalledLangs() {
		$langs = array();
		$files = scandir(Config::$path . '/' . Config::$langDir);
		foreach ($files as $file) {
			if(!preg_match('/^[A-Za-z]+\.php$/', $file)) {
				continue;
			}
			$langs[] = str_replace('.php', '', $file);
		}
		return $langs;
	}

}
